package com.fansl.allround.codegen.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/8/12 11:15
 */
@Configuration
@MapperScan("com.fansl.allround.codegen.mapper")
public class MybatisPlusConfigurer {
    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
